package com.lx.yygh.sms.client;

import com.lx.yygh.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author c先生
 * @date 2022年10月20日 下午 3:23:37
 * @describe
 */

@FeignClient(value = "service-sms")
@Repository
public interface SMSFeignClient {
    //发送短信
    @GetMapping("/api/sms/sendMessage/{phone}")
    Result sendMessage(@PathVariable("phone") String phone);
}
